-- GENERATED SPELL FOR [Shadow Construct] --


function spell0_29231(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(12471,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29231', 3000, 1)
end

function Sorts_29231(pUnit, Event)
local choix_sorts_29231 = math.random(0, 0)
if choix_sorts_29231 == 0 then
pUnit:RegisterEvent('spell0_29231', 1, 1)
end
end

function mob29231_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29231', math.random(1500, 3000), 1)
end

function mob29231_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29231_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29231_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29231, 1, 'mob29231_Action')
RegisterUnitEvent(29231, 2, 'mob29231_Leave')
RegisterUnitEvent(29231, 3, 'mob29231_Kill')
RegisterUnitEvent(29231, 4, 'mob29231_Die')
